package com.atguigu.designpattern.decorator;

import java.security.SecureRandom;
import java.util.Random;

/**
* @program: springcloud
* @description: 主类
* @author: wangjun
* @create: 2021-05-19
**/
public class DecoratorMain {

    public static void main(String[] args) {
//        ConcreteComponent concreteComponent = new ConcreteComponent();
//        Decorator decoratorA = new ConcreteDecoratorA();
//        Decorator decoratorB = new ConcreteDecoratorB();
////        decoratorA.setComponent(concreteComponent);
//        decoratorB.setComponent(decoratorA);
//        decoratorB.operation();

        final Random r = new SecureRandom();
        byte[] salt = new byte[32];
        r.nextBytes(salt);
        System.out.println(salt);
    }
}
